package com.ccsc.auth.entity.vi;

import com.ccsc.auth.entity.Resource;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Size;
import java.util.List;

/**
 *角色
 * Created by yyangs on 2017/2/10.
 */
public class RoleVi {
    private Integer id;//角色id
    @NotEmpty(message = "{rolename.not.empty}")
    private String name;//角色名称
    private String description;//角色描述
    @Size(min=1, message = "{role.resource.not.empty}")
    private List<Integer> resourceList;//该角色所拥有的资源

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public List<Integer> getResourceList() {
        return resourceList;
    }

    public void setResourceList(List<Integer> resourceList) {
        this.resourceList = resourceList;
    }
}
